package com.wlc.javasggmianshiti2022.sgg01.episode2.one;

import java.io.IOException;
import java.util.Properties;

/**
 * @author 王立朝
 * @date 2022/11/22
 * @description:
 */
public class Single03 {
    public static final Single03 INSTANCE;
    private String info;
    static {
        try {
            Properties pro = new Properties();
            pro.load(Single03.class.getClassLoader().getResourceAsStream("single.property"));
            INSTANCE = new Single03(pro.getProperty("info"));
        } catch (IOException e) {
            throw new RuntimeException("发生了异常，信息为： " + e);
        }
    }

    private Single03(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "Single03{" +
                "info='" + info + '\'' +
                '}';
    }
}
